package com.itheima.controller;


import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.entity.Result;
import com.itheima.service.MemberService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RequestMapping("/report")
@RestController
public class ReportCrntroller {

    @Reference
    private MemberService memberService;

    @RequestMapping("getMemberReportByAgeAndSex")
    public Result getMemberReport(){
        List<Map<String, Object>> map=memberService.getMemberReportByAgeAndSex();
        return new Result(true, "",map);
    }
}
